// httprequest.js
var http = require('http');
var queryString = require('querystring');

var contents = queryString.stringify({
	name:'byvoid',
	email:'byvoid@byvoid.com',
	address:'Zi jing#,Tsing hua'
});

var options = {
	host : 'www.baidu.com',
	path : '/applicaiton/node/post.php',
	method : 'POST',
	headers :{
		'Content-Type':'applicaiton/x-www-form-urlencoded',
		'Content-Length' : contents.length
	}
};

var req = http.request(options, function(res){
	res.setEncoding('utf8');
	res.on('data',function(data){
		console.log(data);
	});
});

req.write(contents);
req.end();